﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteRequireLogin.Master" AutoEventWireup="true" CodeBehind="Upload.aspx.cs" Inherits="TranTekBE.Upload.Upload" %>

<%@ Register Src="~/Admin/UserControl/MenuAdmin.ascx" TagPrefix="uc1" TagName="MenuAdmin" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../Maintenance/css/bootstrap.css" rel="stylesheet" />
    <link href="../Maintenance/css/custom.css" rel="stylesheet" />
    <link href="../Maintenance/css/whmcs.css" rel="stylesheet" />
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script type="text/javascript">

        // Load the Visualization API and the piechart package.
        google.load('visualization', '1.0', { 'packages': ['corechart'] });

        // Set a callback to run when the Google Visualization API is loaded.
        google.setOnLoadCallback(drawChart);

        // Callback that creates and populates a data table,
        // instantiates the pie chart, passes in the data and
        // draws it.
        function drawChart() {

            // Create the data table.
            var data = new google.visualization.DataTable();
            data.addColumn('string', 'Topping');
            data.addColumn('number', 'Slices');
            data.addRows([<%=chartm%>]);

            // Set chart options
            var options = {
                'title': 'Biểu đồ hàng trạng thái lần upload cuối',
                'width': 400,
                'height': 300
            };

            // Instantiate and draw our chart, passing in some options.
            var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
            chart.draw(data, options);
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="BodyContent" runat="server">
    <div class="whmcscontainer">
    <div class="contentpadded">
         <!-- Bắt đầu menu top -->
        <uc1:MenuAdmin runat="server" ID="MenuAdmin" />
        <!-- Kết thúc menu top -->


        <div class="page-header">
        <div class="styled_title"><h2>Upload file thông kê<br /><small>Tại đây bạn có thể upload và xem chi tiết về hàng tồn kho<br />
            Hệ thống tự phát hiện và ngăn chặn việc upload 2 file giống nhau lên server.
                                                                </small></h2></div>
        </div>
    <fieldset class="control-group">
	    <div class="row">
            
            <asp:FileUpload ID="fileupload" runat="server" /><br />
            <asp:Label ID="lblthongbao" runat="server"></asp:Label><br />
            <asp:Button ID="btnupload" runat="server" Text="Upload File" OnClick="btnupload_Click" />
            
        </div>
        <br />
        
        <div class="row">
            <div class="multicol">
                <div class="control-group">
        		   <asp:Label ID="lblshow" runat="server"></asp:Label><br />
                     <asp:GridView ID="Gridshow" runat="server" Height="141px" Width="251px">
                    </asp:GridView>
        		</div>
    		</div>
       </div>
        <div class="row">
            <div class="multicol">
                <div class="control-group">
        		   <div id="chart_div"></div>
        		</div>
    		</div>
       </div>
         
    </fieldset>

    </div>
    </div>


</asp:Content>
